"""
定时任务工具类
"""
import schedule
import time


def job():
    print('work work')


schedule.every(10).seconds.do(job)
schedule.run_all()

while True:
    schedule.run_pending()
    time.sleep(1)
